package com.kaiwukj.android.ufamily.mvp.http.entity.result;

import com.kaiwukj.android.ufamily.mvp.http.entity.base.BaseBean;

public class ActiveResult extends BaseBean {

    /**
     * "id": 3,
     * "communityId": null,
     * "cityCode": null,
     * "publisherId": 3,
     * "publisherType": 2,
     * "activityTitle": "gfhu",
     * "activityDetails": "tIZGf1eVKNCxFyEpXmMHXyJRWVHxrpAwIQTM2Iia",
     * "activityImg": "http://jylqn.kaiwumace.com/manhendImg.png",
     * "activityAddress": "梦时代广场",
     * "contacts": "祝磊瀚",
     * "contactNumber": "13675587016",
     * "activityStartTime": "2020-04-18 16:39:11",
     * "activityEndTime": "2020-05-18 14:36:21",
     * "enrollDeadline": "2020-04-18 11:20:50",
     * "enrollFee": 3,
     * "enrollQuota": 1229,
     * "status": 1,
     * "createTime": "2020-04-18 16:02:37",
     * "updateTime": "2020-04-18 16:02:37",
     * "deleted": null,
     * "joinNum"
     */

    private Integer id;
    private Integer communityId;
    private String cityCode;
    private Integer publisherId;//发布人id
    private Integer publisherType;//1:运营 2：管家 3：物业
    private String activityTitle;
    private String activityDetails;
    private String activityImg;
    private String activityAddress;
    private String contacts;//联系人
    private String contactNumber;
    private String activityStartTime;
    private String activityEndTime;
    private String enrollDeadline;//报名截止时间
    private Double enrollFee;//报名费用
    private Integer enrollQuota;//报名名额
    private Integer status;// 1：活动报名中 2：活动中 3：已结束
    private String createTime;
    private String updateTime;
    private Integer joinNum;//参加人数
    private Integer joinActive;//是否已参加活动

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCommunityId() {
        return communityId;
    }

    public void setCommunityId(Integer communityId) {
        this.communityId = communityId;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public Integer getPublisherId() {
        return publisherId;
    }

    public void setPublisherId(Integer publisherId) {
        this.publisherId = publisherId;
    }

    public Integer getPublisherType() {
        return publisherType;
    }

    public void setPublisherType(Integer publisherType) {
        this.publisherType = publisherType;
    }

    public String getActivityTitle() {
        return activityTitle;
    }

    public void setActivityTitle(String activityTitle) {
        this.activityTitle = activityTitle;
    }

    public String getActivityDetails() {
        return activityDetails;
    }

    public void setActivityDetails(String activityDetails) {
        this.activityDetails = activityDetails;
    }

    public String getActivityImg() {
        return activityImg;
    }

    public void setActivityImg(String activityImg) {
        this.activityImg = activityImg;
    }

    public String getActivityAddress() {
        return activityAddress;
    }

    public void setActivityAddress(String activityAddress) {
        this.activityAddress = activityAddress;
    }

    public String getContacts() {
        return contacts;
    }

    public void setContacts(String contacts) {
        this.contacts = contacts;
    }

    public String getContactNumber() {
        return contactNumber;
    }

    public void setContactNumber(String contactNumber) {
        this.contactNumber = contactNumber;
    }

    public String getActivityStartTime() {
        return activityStartTime;
    }

    public void setActivityStartTime(String activityStartTime) {
        this.activityStartTime = activityStartTime;
    }

    public String getActivityEndTime() {
        return activityEndTime;
    }

    public void setActivityEndTime(String activityEndTime) {
        this.activityEndTime = activityEndTime;
    }

    public String getEnrollDeadline() {
        return enrollDeadline;
    }

    public void setEnrollDeadline(String enrollDeadline) {
        this.enrollDeadline = enrollDeadline;
    }

    public Double getEnrollFee() {
        return enrollFee == null ? 0 : enrollFee;
    }

    public void setEnrollFee(Double enrollFee) {
        this.enrollFee = enrollFee;
    }

    public Integer getEnrollQuota() {
        return enrollQuota;
    }

    public void setEnrollQuota(Integer enrollQuota) {
        this.enrollQuota = enrollQuota;
    }

    public Integer getStatus() {
        return status == null ? 0 : status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getStatusStr() {
        if (getStatus() == 3) {
            return "已结束";
        } else if (getStatus() == 2) {
            return "活动中";
        } else {
            return "活动报名中";
        }
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getJoinNum() {
        return joinNum == null ? 0 : joinNum;
    }

    public void setJoinNum(Integer joinNum) {
        this.joinNum = joinNum;
    }

    public Integer getJoinActive() {
        return joinActive;
    }

    public void setJoinActive(Integer joinActive) {
        this.joinActive = joinActive;
    }

    public boolean isJoined() {
        return joinActive != null && joinActive == 1;
    }
}
